/* Important: This function cruelly assumes that the array is iterated in C-style.
 *  That is to say; the last entity *must* be length - 1.
 */
function inArray(mEntity, mArray)
{
	var bHasEntry = false;
	for (var i = 0; i < mArray.length; i++)
	{
		if (mArray[i] == mEntity)
		{
			bHasEntry = true;
		}
	}
	return bHasEntry;
}
